Vector Image
The VectorImage class serves as a container for defining an image for laser marking. It includes both static and dynamic shapes, as well as laser parameters such as timings, speeds, and delays. In laser marking, it is crucial to have control over the laser parameters and shape geometries in different orders and sequences. There may be a need for adjustments and fine-tuning of these parameters and shapes to achieve the desired output. The VectorImage class is specifically designed to facilitate such requirements and allow for easier modifications and alterations as needed.
To create the final laser marking image, the VectorImage class allows the programmer to add multiple geometric shapes and images. This can be achieved by first adding the laser parameters to the vector image, specifying the desired settings for the marking process. Then, the programmer can add individual shapes that should be marked using the specified laser parameters. This sequence of defining laser parameters and adding shapes can be repeated until all the necessary shapes are included in the vector image. This flexible approach allows for the construction of complex laser marking images with various shapes and customized laser parameters.
The VectorImage class follows a set of rules to simplify the laser marking process:
-
All commands added to the VectorImage will be processed in the order they are added. This ensures that the desired sequence of operations is maintained.
-
Laser parameters are applied in the order they are defined. When multiple laser parameters are specified, they will be applied sequentially, allowing for precise control over the marking process.
-
Once a laser parameter is set, it remains effective until explicitly changed again. This ensures consistency and avoids the need to repeatedly specify the same parameters for subsequent shapes.
-
Shapes within the VectorImage are marked in the order they are defined. This allows for t he desired arrangement and positioning of shapes in the final marking image.
-
If no laser parameters are explicitly defined for a shape, a default set of parameters will be assumed. This ensures that the marking process can still proceed even if specific parameters are not provided for every shape.
This behavior exhibits a state machine-like characteristic, where the vector image orchestrates the sequential execution of each operation according to their specified order. The state of the laser will only change if a parameter is modified. As a result, it is possible to selectively alter the necessary parameters for each shape while leaving the remaining parameters unchanged. This approach enables precise control over the laser marking process by focusing on the specific parameters that require modification, while keeping the unaffected parameters consistent throughout the operation.
Properties
DistanceUnit | Get the units used for this vector image. |
IsStreamed | Get or set a value indicating whether the vector image is set to stream |
LayerList | Get or Set the layer list associated with this vector Image |
Name | Returns the name of this vector image. |
SkyWritingEnabled | Get or set the Sky Writing status |
VariablePolyDelayEnabled | Get or Set the variable poly delay status for this vector image. |
ImageBoundingBox | Gets or Sets the bounding box that encloses all the shapes |
Methods
AddArc | Adds an Arc to the VectorImage |
AddCircle | Adds a circle shape to the VectorImage |
AddDot | Adds a dot shape to the VectorImage. |
AddEllipse | Adds an Ellipse shape to the VectorImage |
AddEllipticalArc | Adds an Elliptical Arc to the VectorImage |
AddDeg3BezierPath | Adds a degree 3 Bezier shape to the VectorImage |
AddLine | Adds a line to the VectorImage |
AddPolygon | Adds a polygon shape to the vector image |
AddPolyline | Add an PolylineShape to the VectorImage |
AddPrecisionCircle | Adds a circle shape to the VectorImage with controlled segmentation correction. |
AddRectangle | Adds a Rectangle to the VectorImage |
AddBarcodeShape | Adds a specified barcode to vector Image. |
AddDrillShape | Adds a list of dot shapes to the VectorImage |
AddGroupShape | Adds a Group of shapes to the VectorImage |
AddHatchShape | Adds a Hatch Shape to the VectorImage. |
AddRasterImageShape | Adds a Raster Image Shape to the vector image |
AddSpiralShape | Adds a spiral shape to the VectorImage |
AddTextShape | Adds a TextShape to the vector image |
AddDynamicArcTextShape | Adds a DynamicArcTextShape to the vector image |
AddDynamicBarcodeShape | Adds a dynamic barcode shape to the VectorImage |
AddDynamicRasterImageShape | Adds a dynamic raster Image shape to the VectorImage |
AddDynamicTextShape | Adds a dynamic text shape to the VectorImage |
AddScannableObject | Adds a new scan object to the vector image |
Clone | Clone this vector image in to a new object |
Deserialize | Restore a serialized copy of a vector image |
Serialize | Creates a serialized copy of this vector image |
DisableWobble | Disables the wobble function for this vector image. |
EnableWobble | Enables the wobble function for the vector image. |
Export | Exports this vector image to a file or a byte array |
GetTotalCycleTime | Gets the cycle time in seconds for the VectorImage. |
GetEstimatedCycleTime | Estimates the cycle time in seconds for the VectorImage |
SetBreakAngle | |
SetChannelOneDutyCycle | Sets the modulation duty cycle for the Channel One |
SetChannelTwoDutyCycle | Sets the modulation duty cycle for the Channel two |
SetJumpDelay | Sets the Jump Delay for the marking |
SetJumpSpeed | Sets the laser Jump Speed for the marking. |
SetLaserOffDelay | Sets the Laser Off Delay for the marking |
SetLaserOnDelay | Sets the Laser On Delay for the marking |
SetLaserPowerPercentage | Sets the laser power as a percentage for the marking |
SetLaserProperties | Sets laser parameters |
SetLaserPropertyVariable | |
SetMarkDelay | Sets the Mark Delay for the marking |
SetMarkSpeed | Sets the laser speed for the marking |
SetMaxRadialError | Sets the max radial error for the marking |
SetModulationFrequency | Sets the modulation frequency in kHz |
SetPipelineDelay | Sets the PipeLineDelay for the marking |
SetPolyDelay | Sets the PolyDelay for the marking |
SetPulseWaveform | Pulse wave form selection for fiber lasers |
SetRepeatCount | Sets the number of repetitions for the marking |
SetVelocityCompensationMode | Sets the Velocity compensation parameters for the marking |
ModifyDigitalPort | Modify the specified digital port status |